export default [
  {
    path: '/warehouse',
    component: () => import('@/views/warehouse/index.vue'),
    name: 'Warehouse',
    meta: {
      title: '仓库管理',
      icon: 'warehouse',
      keepAlive: true
    },
    children: [
      {
        path: 'stock-in/create',
        component: () => import('@/views/warehouse/stockIn/create.vue'),
        name: 'StockInCreate',
        meta: {
          title: '入库作业',
          icon: 'inbound',
          keepAlive: false
        }
      },
      {
        path: 'stock-out/create',
        component: () => import('@/views/warehouse/stockOut/create.vue'),
        name: 'StockOutCreate',
        meta: {
          title: '出库作业',
          icon: 'outbound',
          keepAlive: false
        }
      },
      {
        path: 'inventory',
        component: () => import('@/views/warehouse/inventory/index.vue'),
        name: 'Inventory',
        meta: {
          title: '库存查询',
          icon: 'inventory',
          keepAlive: true
        }
      },
      {
        path: 'stock-taking',
        component: () => import('@/pages/smart/warehouse/stock-taking/index.vue'),
        name: 'StockTaking',
        meta: {
          title: '盘点作业',
          icon: 'stocktaking',
          keepAlive: false
        }
      }
    ]
  }
]